﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Windows.Media.Imaging;

namespace Galnote
{
	public partial class Header : UserControl
	{
		public Header()
		{
			InitializeComponent();
		}

		private void HeaderUserID_Loaded(object sender, RoutedEventArgs e)
		{
			UserInfo T1 = new UserInfo();
			T1.UserID = "存在";
			T1.Sign = "焼肉！焼肉！！　食べたい！！";
			T1.Avatar = new BitmapImage(new Uri(@"/Images/Avatar.jpg", UriKind.Relative));

			UserInfo[] data = { T1 };

			HeaderUserID.Content = T1;
		}

		private void MailBox_Loaded(object sender, RoutedEventArgs e)
		{
			Setting M1 = new Setting();
			M1.MailBox = "短信";
			M1.MBCount = 3;

			MailBox.DataContext = M1;
		}

		private void SetBox_Loaded(object sender, RoutedEventArgs e)
		{
			Setting S1 = new Setting();
			S1.Set="设定";

			SetBox.DataContext = S1;
		}

		private void Management_Loaded(object sender, RoutedEventArgs e)
		{
			Setting M1 = new Setting();
			M1.Set = "管理";

			Management.DataContext = M1;
		}

		private void Quit_Loaded(object sender, RoutedEventArgs e)
		{
			Setting Q1 = new Setting();
			Q1.Set = "退出";

			Quit.DataContext = Q1;
		}

		private void Register_Loaded(object sender, RoutedEventArgs e)
		{
			Setting R1 = new Setting();
			R1.Set = "注册";

			Register.DataContext = R1;
		}

		private void Cut_Loaded(object sender, RoutedEventArgs e)
		{
			Setting C1 = new Setting();
			C1.Set = "/";

			Cut.DataContext = C1;
		}

		private void Login_Loaded(object sender, RoutedEventArgs e)
		{
			Setting L1 = new Setting();
			L1.Set = "登入";

			Login.DataContext = L1;
		}

	//	private void ListBoxContent_Loaded(object sender, RoutedEventArgs e)
	//	{
	//		Toolbar T1 = new Toolbar();
	//		T1.Title = "Wallpapers";
	//		T1.Count = 2033;

	//		Toolbar T2 = new Toolbar();
	//		T2.Title = "Pictures";
	//		T2.Count = 2140;

	//		Toolbar T3 = new Toolbar();
	//		T3.Title = "Comic";
	//		T3.Count = 566;

	//		Toolbar T4 = new Toolbar();
	//		T4.Title = "Light Noverl";
	//		T4.Count = 2;


	//		Toolbar[] data = { T1, T2, T3, T4 };
	//		ToolbarContent.ItemsSource = data;
	//	}


	}
}
